<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
	name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet"
	href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet"
	href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
<script src="../../plugins/echarts/echarts.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../js/modules/bdbusiness/showGraph.js"></script>
</head>
<body>
	<div id="rrapp" v-cloak>
		<div v-show="showList">
			<div class="grid-btn">
				<div class="form-group col-sm-2">
					<input type="text" class="form-control" v-model="q.entname" @keyup.enter="query" placeholder="企业名称">
				</div>
				<div class="form-group col-sm-2">
					<input type="text" class="form-control" v-model="q.frdb" @keyup.enter="query" placeholder="法定代表人">
				</div>
				<div class="form-group col-sm-2">
					<input type="text" class="form-control" v-model="q.enttype" @keyup.enter="query" placeholder="企业类型">
				</div>
				<div class="form-group col-sm-2">
					<select style="" class="form-control" v-model="q.regcap">
                        <option value="">注册资本</option>
                        <option value="1">0-100万以下</option>
                        <option value="2">100-1000万以下</option>
                        <option value="3">1000万以上</option>
                    </select>
				</div>
				<div style="padding-left: 15px;">
					<a class="btn btn-default" @click="query">查询</a>
					<a class="btn btn-primary" @click="details"><i class="fa fa-pencil-square-o"></i>&nbsp;企业详情</a>
					<a class="btn btn-primary" onClick="layerOpen()"><i class="fa fa-database"></i>&nbsp;数据图谱</a>
				</div>
			</div>
			<table id="jqGrid"></table>
			<div id="jqGridPager"></div>
		</div>

		<div v-show="!showList" class="panel panel-default">
			<!-- <div class="grid-btn">
			<a class="btn btn-primary" onclick="window.history.back()"><i class="fa fa-reply"></i>&nbsp;返回</a>
			</div> -->
			<div class="">
				<input type="button" class="btn btn-primary" @click="reload" value="返回" />
			</div>
			<div class="panel-heading">企业详情</div>
			<div class="form-horizontal">
				<div class="form-group">
					<div class="col-sm-3 control-label">企业名称</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.entname}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">曾用名</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.oldname}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">社会信用代码</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.shxydm}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">法定代表人</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.frdb}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">成立日期</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.esdate}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">经营状态</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.entstatus}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">注册资本</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.regcap}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">注册资本币种</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.regcapcur}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">地址</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.dom}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">企业类型</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.enttype}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">经营业务范围</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.opscope}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">登记机关</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.regorg}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">经营期限自</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.opfrom}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">经营期限至</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.opto}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">核准日期</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.apprdate}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">死亡日期</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.enddate}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">吊销日期</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.revdate}}</div>
				</div>
				<div class="form-group">
					<div class="col-sm-3 control-label">注销日期</div>
					<div class="col-sm-9 control-label" style="text-align: left;">{{cRegisterinfo.candate}}</div>
				</div>
			</div>
			
			<div class="panel-heading">股东及出资信息</div>
			<div class="" style="margin: 20px;">
				<table class="ui-jqgrid-btable ui-common-table table table-bordered" style="width: 800px;">
					<tbody>
						<tr>
							<td>股东名称</td>
							<td>股东类型</td>
							<td>认缴出资额</td>
							<td>出资币种</td>
							<td>出资比例</td>
							<td>出资时间</td>
						</tr>
						<tr v-for="(item, index) in holderList">
							<td>{{item.inv}}</td>
							<td>{{item.invtpe}}</td>
							<td>{{item.subconam}}</td>
							<td>{{item.concur}}</td>
							<td>{{item.conratio}}</td>
							<td>{{item.condate}}</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="panel-heading">企业发展纪事</div>
			<div class="" style="margin: 20px;">
				<table class="ui-jqgrid-btable ui-common-table table table-bordered" style="width: 500px;">
					<tbody>
						<tr>
							<td>动作</td>
							<td>时间</td>
							<td>描述</td>
						</tr>
						<tr v-for="(item, index) in entChronicleInfoList">
							<td>{{item.act}}</td>
							<td>{{item.month}}</td>
							<td>{{item.describe}}</td>
						</tr>
					</tbody>
				</table>
				
			</div>
			
			<div class="form-group">
				<div class="col-sm-1 control-label"></div>
				<input type="button" class="btn btn-primary" @click="reload" value="返回" />
			</div>
		</div>
	</div>

	<div class="control-label" id="showGraph" style="padding-left: 15px;width: 1000px;height: 400px;display: none;"></div>
	<script src="../../js/modules/bdbusiness/cregisterinfo.js"></script>
</body>
</html>